package com.example.spinning.utils;

import java.sql.Timestamp;

/**
 * @author bayernxmt
 * @create 2021-03-23-20:57
 */
public class CraftManagementTimeUtils {
    public static Timestamp getTimestamp(){
        Long currentTimestamps=System.currentTimeMillis();
        Long oneDayTimestamps= Long.valueOf(60*60*24*1000);
        return new Timestamp(currentTimestamps-(currentTimestamps+60*60*8*1000)%oneDayTimestamps);
    }
}
